package cn.wygandwdn.common.enumeration;

/**
 * @description:
 * @author: WYG
 * @time: 2021/10/24 20:24
 */

public enum ErrorType {
    UNKNOWN_ERROR("未知异常"),
    NOT_SUPPORT("不支持的数据包"),
    NOT_SUPPORT_VERSION("不支持的版本号"),
    UNKNOWN_SERIALIZER("无法识别的序列化器"),
    UNKNOWN_MESSAGE_CLASS("无法识别的消息类型"),
    FAILED_SERIALIZE("序列化失败"),
    SERVICE_NOT_REGISTER("服务未注册"),
    FAILED_CONNECT_REGISTRY("连接注册中心失败"),
    REQUEST_TIMEOUT("请求超时");

    private String message;

    ErrorType(String message) {
        this.message = message;
    }

    public String getMessage() {
        return message;
    }
}
